

package com.example.administrator.caigou51.recyclerCard.cardView;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

import com.example.administrator.caigou51.R;
import com.example.administrator.caigou51.recyclerCard.basic.CardItemView;
import com.example.administrator.caigou51.recyclerCard.card.GoodsSayBooksCard;


public class GoodsSayBooksCardView extends CardItemView<GoodsSayBooksCard> {
 	private Context mContext;
    public GoodsSayBooksCardView(Context context) {
        super(context);
        mContext=context;
        // TODO Auto-generated constructor stub
    }

    public GoodsSayBooksCardView(Context context, AttributeSet attrs) {
        super(context, attrs);
        mContext=context;
        // TODO Auto-generated constructor stub
    }

    public GoodsSayBooksCardView(Context context,
                                    AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        mContext=context;
        // TODO Auto-generated constructor stub
    }
    private TextView textView_tym;
    private TextView textView_sccj;
    private TextView textView_cplx;
    private TextView textView_yplb;
    private TextView textView_chengfen_desc;
    private TextView textView_chengfen;
    private TextView textView_ypxz;
    private TextView textView_shiying_desc;
    private TextView textView_shiying;
    private TextView textView_yfyl_desc;
    private TextView textView_yfyl;
    private TextView textView_blfy;
    private TextView textView_jzz_desc;
    private TextView textView_jzz;
    private TextView textView_spgg_desc;
    private TextView textView_spgg;
    private TextView textView_zysx_desc;
    private TextView textView_zysx;
    private TextView textView_xhzy_desc;
    private TextView textView_xhzy;
    private TextView textView_zc;
    private TextView textView_yxq;
    private TextView textView_fnyy;
    private TextView textView_pp;
    private TextView textView_etyy;
    @Override
    public void build(GoodsSayBooksCard card) {
        // TODO Auto-generated method stub
        super.build(card);
      //  textView_pp= (TextView) findViewById(R.id.textView_pp);
      //  textView_tym = (TextView) findViewById(R.id.textView_tym);
        textView_sccj = (TextView) findViewById(R.id.textView_sccj);
     //   textView_cplx = (TextView) findViewById(R.id.textView_cplx);
        textView_yplb = (TextView) findViewById(R.id.textView_yplb);
        textView_chengfen_desc = (TextView) findViewById(R.id.textView_chengfen_desc);
        textView_chengfen = (TextView) findViewById(R.id.textView_chengfen);
        textView_ypxz = (TextView) findViewById(R.id.textView_ypxz);
        textView_shiying_desc = (TextView) findViewById(R.id.textView_shiying_desc);
        textView_shiying = (TextView) findViewById(R.id.textView_shiying);
        textView_yfyl_desc = (TextView) findViewById(R.id.textView_yfyl_desc);
        textView_yfyl = (TextView) findViewById(R.id.textView_yfyl);
        textView_blfy = (TextView) findViewById(R.id.textView_blfy);
        textView_jzz_desc = (TextView) findViewById(R.id.textView_jzz_desc);
        textView_jzz = (TextView) findViewById(R.id.textView_jzz);
        textView_spgg_desc = (TextView) findViewById(R.id.textView_spgg_desc);
        textView_spgg = (TextView) findViewById(R.id.textView_spgg);
        textView_zysx_desc = (TextView) findViewById(R.id.textView_zysx_desc);
        textView_zysx = (TextView) findViewById(R.id.textView_zysx);
        textView_xhzy_desc = (TextView) findViewById(R.id.textView_xhzy_desc);
        textView_xhzy = (TextView) findViewById(R.id.textView_xhzy);
        textView_zc = (TextView) findViewById(R.id.textView_zc);
        textView_yxq = (TextView) findViewById(R.id.textView_yxq);
        textView_fnyy = (TextView) findViewById(R.id.textView_fnyy);
        textView_etyy= (TextView) findViewById(R.id.textView_etyy);

     //   textView_pp.setVisibility(View.GONE);
     //   textView_tym.setVisibility(View.GONE);
      //  textView_cplx.setVisibility(View.GONE);
      //  textView_tym
     //   textView_cplx

        textView_sccj.setText(card.getGoodsSayBean().getCorporation());
        textView_yplb.setText(card.getGoodsSayBean().getIs_prescription_medicine());
        textView_chengfen.setText(card.getGoodsSayBean().getComponent());
        textView_ypxz.setText(card.getGoodsSayBean().getProperties());
        textView_shiying.setText(card.getGoodsSayBean().getIndication());
        textView_yfyl.setText(card.getGoodsSayBean().getUsage_dosage());
        textView_blfy.setText(card.getGoodsSayBean().getUntoward_effect());
        textView_spgg.setText(card.getGoodsSayBean().getPackaging());
        textView_yfyl.setText(card.getGoodsSayBean().getUsage_dosage());
        textView_jzz.setText(card.getGoodsSayBean().getContraindication());
        textView_zysx.setText(card.getGoodsSayBean().getAnnouncements());
        textView_xhzy.setText(card.getGoodsSayBean().getDrug_interaction());
        textView_zc.setText(card.getGoodsSayBean().getDepot());
        textView_yxq.setText(card.getGoodsSayBean().getPeriod_of_validity());
        textView_fnyy.setText(card.getGoodsSayBean().getPregnant_lactating());
        textView_etyy.setText(card.getGoodsSayBean().getChildren());
    }
}
